package com.kk.rbac.controller;

import com.kk.rbac.entity.User;
import com.kk.rbac.mapper.UserMapper;
import com.kk.rbac.service.UserService;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : K k
 * @date : 16:25 2020/11/4
 */
@RestController
@RequestMapping("acl")
public class AclController {
    @Autowired
    private UserService userService;

    @GetMapping("index")
    public User index(){
        User user = userService.getById(1);
        return user;
    }


}
